<br>
<font color="#800080" size="5"><u>Login</u></font><br><br>

<?php if (Zend_Auth::getInstance()->hasIdentity()): ?>
    &nbsp;You logged in.
<?php else: ?>
     <?php if (isset($this->messages)): ?>
        <p>The following problems were encountered with your last login attempt:<br>
        <?php foreach ($this->messages as $field => $messages):?>
            <b><?php echo $this->escape($field) ?></b>
            <?php foreach ($messages as $message): ?>
                <?php echo $this->escape($message) ?>
            <?php endforeach; ?>
        <?php endforeach; ?>
        </p>
    <?php endif; ?>

    <form action="<?php echo $this->baseUrl();?>/index/login" method="POST">
    <font size="2">
    &nbsp;Username: <input type="text" name="username" size="17"><br><br>
    &nbsp;Password: <input type="password" name="password" size="17"><br>
    &nbsp;<input type="submit" style="background-color:#800080; color:#FFFFFF" value="Login">
    </font></form>
<?php endif; ?>
